<?php
class countryController extends appController {    
    
    public function index($id=null, $country_id=null, $code=null, $modified=null, $name=null){
    	$create_date= date("Y/m/d");
    	// print_r($create_date);exit;
        if($_SERVER["REQUEST_METHOD"]=='POST'){
                $id = $this->_model->CountryName($id,$country_id,$code,$create_date,$modified,$name);

                if($id != null){
                    header('Location: index');
                    exit;
                }
        }

        return $this->view();
    }

}
?>